import request from '@/utils/request'

export function getArticleTotalAPI(){
    return request({
        url:'/article/getArticleTotal',
        method:'GET'
    })
}

export function getListAPI(data){
    return request({
        url:'/article/getList',
        method:'GET',
        params:data
    })
}

export function deleteArticleAPI(ids){
    return request({
        url:'/article/deleteArticle/'+ids,
        method:'DELETE'
    })
}



export function deleteCategoryAPI(id){
    return request({
        url:'/article/deleteCategory/'+id,
        method:'DELETE'
    })
}

export function addCategoryAPI(data){
    return request({
        url:'/article/addCategory',
        method:'POST',
        params:data
    })
}

